<%--
  User: Administrator  Date: 2021/9/22  Time: 10:32
--%>
<%@ page import="java.sql.*" contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="pojo.Major" %>
<html>
<head>
    <title>专业信息修改页面</title>
</head>
<body>
<%
    //从session中获取指定id的专业信息
    Major major= (Major) session.getAttribute("major");
    //显示并可修改专业信息
%>
    <form action="updateMajorServlet" method="post">
        专业ID:<input type="text" name="id" value="<%=major.getId()%>" readonly/><br>
        专业名称:<input type="text" name="majorName" value="<%=major.getMajorName()%>"/><br>
        <input type="submit" value="修改"/>
        <input type="reset" value="清空">
    </form>
</body>
</html>
